<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>销售单-{$mydata.mas_no}</title>
	<include file="Public:header" />
	<style type="text/css">
		.input{width:130px; border:1px solid #ccc; padding:2px;}
		.input0{border:0px; padding:0px; margin:0px; height:14px; overflow:hidden;}
		.input2{border:1px solid #ccc; padding:0px; margin:1px 0px 1px 0px; height:20px; display:inline-block;}
		.select{width:180px; border:1px solid #ccc; height:25px; padding:2px;}
	</style>
	<script type="text/javascript">		
		var actflg="{:C('URL_MODEL')}"=="0"?"&":"?";
		
		window.onload=function()
		{
			window.print();
		}
	</script>
</head>
<body class="">

	<div class="demo-info">
		<div style="font-size:18px;">{$web_title} - 销售单</div>
	</div>

	<div class="">
		<div style="width:100%; height:20px;">
				<div class="list-t-l w60px">单据号码：</div>
				<div class="list-t-l w100px">{$mydata.mas_no}</div>
				
				<div class="list-t-l w60px" align="right">客户：</div>
				<div class="list-t-l w150px">{$mydata.customer_title}</div>
				
				<div class="list-t-l w60px" align="right">日期：</div>
				<div class="list-t-l w100px">{$mydata.fadate|date='Y-m-d',###}</div>
		</div>
		<div style="height:3px; clear:both;"></div>
		<div style="width:100%; height:20px;">
				<div class="list-t-l w60px">单据状态：</div>
				<div class="list-t-l w100px">{$mydata.status_flg|get_status_title=###}</div>
				
				<div class="list-t-l w60px" align="right">货币：</div>
				<div class="list-t-l w150px">{$mydata.curr_code} {$mydata.curr_rate}</div>
				
				<div class="list-t-l w60px" align="right">摘要：</div>
				<div class="list-t-l w100px">{$mydata.remark}</div>
		</div>
		
		<div style="height:5px; clear:both;"></div>
        
		<div style="min-height:70px;">
		<div class="list-title">
			<div class="list-t-l w100px">商品</div>
			<div class="list-t-l w60px">仓库</div>
			<div class="list-t-l w60px">单位</div>
			<div class="list-t-l w60px">数量</div>
			<div class="list-t-l w60px">单价</div>
			<div class="list-t-l w60px">税点%</div>
			<div class="list-t-l w60px">折扣%</div>
			<div class="list-t-l w100px">备注</div>
		</div>
		<input type="hidden" id="item_num" name="item_num" value="{$item_num}" style="display:none;" />
		<div id="sp_list_body">
		<php>$v_amount1=0;$v_amount2=0;</php>
		<volist name="mydata_item" id="mydata_item" key="k">
		<div id="datarow{$k-1}" class="list-body">
			<div class="list-t-l w100px">{$mydata_item.stk_title}</div>
			<div class="list-t-l w60px">{$mydata_item.wh_title}</div>
			<div class="list-t-l w60px">{$mydata_item.stk_uom}</div>
			<div class="list-t-l w60px">{$mydata_item.qty|get_round=###,6}</div>
			<div class="list-t-l w60px">{$mydata_item.price|get_round=###,6}</div>
			<div class="list-t-l w60px">{$mydata_item.tax_rate|get_round=###,2}</div>
			<div class="list-t-l w60px">{$mydata_item.disc_rate|get_round=###,2}</div>
			<div class="list-t-l w100px">{$mydata_item.remark}</div>
		</div>
		<php>$v_amount1+=(double)$mydata_item['amount1'];$v_amount2+=(double)$mydata_item['amount2'];</php>
		</volist>
		</div>
		
		</div>
		
		<div style="height:3px; clear:both;"></div>
		
		<div class="list-title">

			<div class="list-t-l w50px"></div>
			<div class="list-t-l w60px" style="text-align:center;">金额合计</div>
			<div class="list-t-l w100px"><php>echo get_round($v_amount1);</php></div>
			<div class="list-t-l w60px" style="text-align:center;">价税合计</div>
			<div class="list-t-l w100px"><php>echo get_round($v_amount2);</php></div>
			<div class="list-t-l w100px" style="text-align:center;">本次收款金额</div>
			<div class="list-t-l w100px">{$mydata.check_amount|get_round=###}</div>
			
		</div>
		
		<div style="height:3px; clear:both;"></div>
		
	
		<div style="clear:both;width:610px;margin:0px auto;">
				<div class="list-t-l w80px" align="right">制单：</div>
				<div class="list-t-l w120px">{$mydata.creater_username}</div>
				<div class="list-t-l w80px" align="right">过账：</div>
				<div class="list-t-l w120px">{$mydata.poster_username}</div>				
				<div class="list-t-l w80px" align="right">业务：</div>
				<div class="list-t-l w120px">{$mydata.manager_title}</div>
		</div>
		
		<div style="clear:both;">&nbsp;</div>
	

	</div>


	
</body>
</html>
